package com.ruoyi.omp.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.omp.api.domain.ActMaintainOrderData;
import com.ruoyi.omp.api.domain.ScheduleTask;
import com.ruoyi.omp.api.domain.vo.ActMaintainOrderDataVO;
import com.ruoyi.omp.api.factory.RemoteActMaintainOrderFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteActMaintainOrderService", value = ServiceNameConstants.OMP_ACTIVITI_SERVICE, fallbackFactory =
        RemoteActMaintainOrderFactory.class)
public interface RemoteActMaintainOrderService {
    /**
     * 新增表单数据
     * @return
     */
    @PostMapping(value="/actMaintainOrderData/add")
    public R addData(@RequestBody ActMaintainOrderData actMaintainOrderData);

    //修改表单数据
    @PutMapping(value = "/actMaintainOrderData/edit")
    public R editData(@RequestBody ActMaintainOrderData actMaintainOrderData) ;

    //保存表单数据
    @PostMapping(value="/actMaintainOrderData/remote/saveFormData")
    public R<Integer> remoteSaveFormData(@RequestBody ActMaintainOrderDataVO actMaintainOrderDataVO);

    //获取表单数据
    @PostMapping(value = "/actMaintainOrderData/getData")
    public R<ActMaintainOrderDataVO> getData(@RequestBody ActMaintainOrderData actMaintainOrderData) ;

    //查询表单数据
    @PostMapping(value = "/scheduleTask/add")
    public R addScheduleTask(@RequestBody ScheduleTask scheduleTask);

//
//    @GetMapping(value = "/buiRoom/roomInfo/{roomNum}")
//    R<BuiRoom> getBuiRoomByNum(@PathVariable("roomNum") String roomNum);
//
//    /**
//     * 查询房屋详情
//     * @param roomId 房屋id
//     * @return
//     */
//    @GetMapping(value = "/buiRoom/info/{roomId}")
//    R<BuiRoom> getBuiRoom(@PathVariable("roomId") String roomId);
//
//    /**
//     * 修改房屋信息
//     * @param buiRoom 房屋信息
//     * @return
//     */
//    @PostMapping(value = "/buiRoom/updateRoom")
//    R updateRoom(@RequestBody BuiRoom buiRoom);
//
//    /**
//     * 通过租赁记录id查询租赁总面积
//     * @param recordId 租赁记录id
//     * @return
//     */
//    @GetMapping(value = "/buiRoom/sumArea/{recordId}")
//    R<BigDecimal> sumRoomAreaByRecordId(@PathVariable("recordId") String recordId);
//
//    /**
//     * 通过租赁记录id查询房屋数量
//     * @param recordId 租赁记录id
//     * @return
//     */
//    @GetMapping(value = "/buiRoom/countRoom/{recordId}")
//    R<Integer> countRoomByRecordId(@PathVariable("recordId") String recordId);
}
